{% extends 'layout.html' %}
<!--模板继承-->
{% block content %}
<div class="container">
    <div class="panel  panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">编辑靓号</h3>
        </div>

        <div class="panel-body">

            <form  METHOD="post" novalidate>
                {% csrf_token %}
<!--                {{form}}-->
<!--                {{form.number}}-->
                {% for field in form %}
                <div class="form-group">
                    <label>{{field.label}}</label>
                    {{field}}
                    <div style="color: red">{{field.errors.0}}</div>
                </div>
                {% endfor %}
                <button type="submit" class="btn btn-primary">提交</button>
            </form>

        </div>
    </div>
    {% endblock %}
